package com.lanswon.icc.admin.dao;

import com.lanswon.icc.admin.po.SysElement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysElementMapper {
    int deleteByPrimaryKey(Integer elementId);

    int insert(SysElement record);

    int insertSelective(SysElement record);

    SysElement selectByPrimaryKey(Integer elementId);

    int updateByPrimaryKeySelective(SysElement record);

    int updateByPrimaryKey(SysElement record);

    List<String> queryPermissionByUserId(@Param("userId") Integer userId);

    List<SysElement> queryElementByUsername(@Param("username") String username);

    List<SysElement> queryElementByRoleId(@Param("roleId") Integer roleId);

    List<SysElement> queryAll();
}